// 手写 curry 参数， 功能函数 
// 怎么样 参数收集到位？
// 手写？ 如何传多个参数
const curry = (fn,...args) => 
    args.length >= fn.length
    ? fn(...args)
    : (..._args) => curry(fn,...args,..._args)

const addThreeNumbers = (x,y,z) => x + y + z
const curriedAddThreeNumbers = curry(addThreeNumbers)
console.log(curriedAddThreeNumbers(1,2)(3));